<?
// AUTOLOAD CLASSES
function __autoload($class_name) {
    require_once $class_name . '.php';
}

$timer=new Timer(); $timer->start();

// SET CONSTANTS
define("SITE_DIR", "v1/");
$html = new Strings(SITE_DIR . 'html/', '.html');
$html->set('site_dir', SITE_DIR);
$html->set('css_dir', 'css/');

// INCLUDE THE MAIN INDEX.PHP FILE OF YOUR SITE
include(SITE_DIR . 'main.php');

// html METHOD TO CREATE THE FINAL HTML OUTPUT
echo $html->mixStrings('index');

// Mostrar temporizador
$elapsedTime = $timer->stop(); $_SESSION['timer'] = ($_SESSION['timer'] + $elapsedTime) / 2;
echo 'The average time spent was '.$_SESSION['timer'].' seconds. Memory used was ' . memory_get_usage(true); 
?>